package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class MeatLab extends ProducingBuilding
{

	public MeatLab()
	{
		super(3, 2);
		super.setBuildingName(MeatLab.this.getClass().getSimpleName());
		super.setBuildingExplanation("The meat lab will produce synthetic meat ");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 300));
		super.resourceCosts.add(new Resource(ResourceType.ELECTRICITY, 40));
		super.resourceCosts.add(new Resource(ResourceType.WATER, 150));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 100));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 200));
		super.resourceCosts.add(new Resource(ResourceType.HAPPINESS, 1));

		super.addResourceProduceGain(new Resource(ResourceType.FOOD, 2, true));
		super.addResourceProduceCost(new Resource(ResourceType.SCIENCEPOINTS, 1, true));

		// Mitchell's gedachte :)
		/**
		 * super.setResourcesProduced(ResourceType.MEAT); super.setResourcesProduced(ResourceType.HAPPINESS);
		 * 
		 * if (super.getResourcesProduced() == ResourceType.HAPPINESS) { super.setProductioncapacity(-1); } if
		 * (super.getResourcesProduced() == ResourceType.MEAT) { super.setProductioncapacity(1); }
		 */

		super.resourceImages = new int[6];
		super.resourceImages[0] = R.drawable.meatlab_0;
		super.resourceImages[1] = R.drawable.meatlab_1;
		super.resourceImages[2] = R.drawable.meatlab_2;
		super.resourceImages[3] = R.drawable.meatlab_3;
		super.resourceImages[4] = R.drawable.meatlab_4;
		super.resourceImages[5] = R.drawable.meatlab_5;
		super.setPreviewResourceImageId(R.drawable.meatlab);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
